package com.aaa.sso.service;

import com.aaa.common.util.Result;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @fileName:MemberAuthService
 * @description:
 * @author:zhz
 * @createTime:2020/12/7 9:46
 * @version:1.0.0
 */
public interface AuthService {
    /**
     * 会员验证功能
     * @param userName
     * @param passWord
     * @return
     */
    public Result authMemberOrUser(String userName, String passWord);

    /**
     * 登出
     * @return
     */
    public Result logout(String token);

    /**
     * 验证token
     * @param accessToken
     * @return
     */
    public boolean  chechAccessToken(String accessToken);
}
